package com.gxkj.projects.myshopx.services;

import com.gxkj.common.exceptions.ValidateException;
import com.gxkj.common.utils.ListPager;
import com.gxkj.projects.myshopx.entitys.Attribute;
import com.gxkj.projects.myshopx.entitys.User;

import java.util.List;


public interface AttributeService {

    public void doAddAttribute(User user , Attribute entity) throws ValidateException;

    public void doUpdateAttribute(User user , Attribute entity) throws ValidateException;

    public void doDeleteAttribute(User user, String id);

    public ListPager<Attribute> doPageHQL(int pagenNo, int pageSize, Attribute entity);

    public Attribute getById(String id);

    public List<Attribute> getAttributeListByTypeId(String goodsTypeId);
}
